Dwarrowdelf.Server.EnvWildlifeHandler.Init C# (CSharp) Method

Init() public method

public Init ( ) : void
return void
        public void Init()
        {
            m_herds = new List<AI.Group>();

            m_herds.Add(CreateHerd(5, LivingID.Sheep));
            m_herds.Add(CreateHerd(3, LivingID.Sheep));
            m_herds.Add(CreateHerd(4, LivingID.Sheep));
        }

Usage Example

Ejemplo n.º 1
0
        void CommonInit(bool init)
        {
            m_randomXYArray = new uint[this.Width * this.Height];
            for (int i = 0; i < m_randomXYArray.Length; ++i)
            {
                ushort x = (ushort)(i % this.Width);
                ushort y = (ushort)(i / this.Width);
                m_randomXYArray[i] = ((uint)x << 16) | y;
            }
            MyMath.ShuffleArray(m_randomXYArray, this.World.Random);

            if (this.World.GameMode == GameMode.Fortress)
            {
                m_treeHandler     = new EnvTreeHandler(this, m_originalNumTrees);
                m_wildlifeHandler = new EnvWildlifeHandler(this);
                if (init)
                {
                    m_wildlifeHandler.Init();
                }
            }

            m_waterHandler = new EnvWaterHandler(this);
        }
All Usage Examples Of Dwarrowdelf.Server.EnvWildlifeHandler::Init