This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Pixeye.Source | |
{ | |
sealed class ProcessorRope : Processor<ComponentRope>, ITick | |
{ | |
public override void HandleEvents() | |
{ | |
foreach (ent entity in source.removed) | |
{ | |
var cRope = entity.componentRope(); | |
cRope.renderer.gameObject.Release(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sugar import `=>`, `->` | |
export `->`, `=>` | |
type Wrapper[TSource, TProp] = ref object | |
source: TSource | |
val: TProp | |
prop: proc(arg: TSource): TProp | |
callback: proc(arg: TSource) | |
var storage = newSeq[proc()](0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"homepage": "http://www.info-zip.org/", | |
"license": { | |
"identifier": "Freeware", | |
"url": "http://infozip.sourceforge.net/doc/LICENSE" | |
}, | |
"description": "Zip compression utilities", | |
"version": "3.0", | |
"bin": [ | |
"zip.exe", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Pixeye.Source | |
{ | |
sealed class ProcessorTest : Processor, ITick | |
{ | |
public Group<ComponentPosition> groupThreaded; | |
public ProcessorTest() | |
{ | |
groupThreaded.MakeConcurrent(100000, Environment.ProcessorCount - 1, HandleCalculation); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MethodImpl(MethodImplOptions.AggressiveInlining)] | |
public static T[] Slice<T>(this T[] source, string from, int end) where T : UnityEngine.Object | |
{ | |
Predicate<T> predicate = s => s.name == from; | |
var start = -1; | |
for (int i = 0; i < source.Length; i++) | |
{ | |
ref var val = ref source[i]; | |
if (predicate(val)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Pixeye.Framework; | |
using System.Runtime.CompilerServices; | |
namespace Pixeye.Source | |
{ | |
sealed class ComponentParent | |
{ | |
public ent[] childs = new ent[10]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Dungelot/Sprites/Diffuse" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1) | |
[HideInInspector] _Flip ("Flip", Vector) = (1,1,1,1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[StructLayout(LayoutKind.Sequential)] | |
public unsafe struct BufferTags | |
{ | |
// tags | |
#if ACTORS_TAGS_24 || ACTORS_TAGS_DEFAULT | |
public const int Capacity = 24; | |
private ushort tag0; | |
private ushort tag1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace Pixeye.Framework{ | |
///<summary> | |
/// Mutable String class, optimized for speed and memory allocations while retrieving the final result as a string. | |
/// Similar use than StringBuilder, but avoid a lot of allocations done by StringBuilder (conversion of int and float to string, frequent capacity change, etc.) | |
/// Author: Nicolas Gadenne contact@gaddygames.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Homebrew/Sprites/Diffuse" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1) | |
[HideInInspector] _Flip ("Flip", Vector) = (1,1,1,1) | |
[PerRendererData] _AlphaTex ("External Alpha", 2D) = "white" {} |
NewerOlder