Example #1
0
        public static Entity CreateCrop(Vector2Int position, Crop.Kind kind)
        {
            var entity = CreateEntity("Crop", position);

            entity.AddComponent <Crop>().kind = kind;
            return(entity);
        }
Example #2
0
        public static Entity CreateSeedBox(Vector2Int position, Crop.Kind kind)
        {
            var entity = CreateEntity("SeedBox", position);

            entity.AddComponent <SeedBox>().kind = kind;

            return(entity);
        }
Example #3
0
        public static Entity CreateProduce(Vector2Int position, Crop.Kind kind)
        {
            var ent = CreateEntity("Produce", position);

            ent.AddComponent <Produce>().kind             = kind;
            ent.GetComponent <Renderer>().symbol          = Crop.SymbolFor(kind)[1];
            ent.GetComponent <Renderer>().foregroundColor = Crop.ColorFor(kind);
            return(ent);
        }