Пример #1
0
        public override int GetFaceTextureSlot(int face, int value)
        {
            int plantid = SubsystemMekPlantsBehavior.getPlantID(value);
            int level   = SubsystemMekPlantsBehavior.getLevel(value);
            int data    = Terrain.ExtractData(value);

            switch (face)
            {
            case 4:
                return(223);   //木头顶部和底部

            case 5:
                return(223);

            case 0:
                return(224);

            case 1:
                return(244);

            case 2:
                return(244 + data);

            case 3:
                return(244);
            }
            return(Terrain.ExtractData(value));
        }
Пример #2
0
 public override IEnumerable <int> GetCreativeValues()
 {
     int[] arr = new int[MekiasmInit.items_plant.Count];
     for (int i = 0; i < MekiasmInit.items_plant.Count; i++)
     {
         //最初的状态
         arr[i] = Terrain.MakeBlockValue(1008, 0, SubsystemMekPlantsBehavior.setLevel(MekiasmInit.items_plant.Array[i].itemid, 0));
     }
     return(arr);
 }