Esempio n. 1
0
        public Entity AddArray2D(int[,] newArray2d)
        {
            var component = new Array2DComponent();

            component.array2d = newArray2d;
            return(AddArray2D(component));
        }
Esempio n. 2
0
        public Entity ReplaceArray2D(int[,] newArray2d)
        {
            Array2DComponent component;

            if (hasArray2D)
            {
                WillRemoveComponent(ComponentIds.Array2D);
                component = array2D;
            }
            else
            {
                component = new Array2DComponent();
            }
            component.array2d = newArray2d;
            return(ReplaceComponent(ComponentIds.Array2D, component));
        }
Esempio n. 3
0
 public Entity AddArray2D(Array2DComponent component)
 {
     return(AddComponent(ComponentIds.Array2D, component));
 }