ACR_CreatureBehavior.ModuleObject.ModuleObject C# (CSharp) Method

ModuleObject() public method

Construct a module object and insert it into the object table.
public ModuleObject ( uint ObjectId, GameObjectManager ObjectManager ) : System
ObjectId uint Supplies the object id.
ObjectManager GameObjectManager Supplies the object manager.
return System
        public ModuleObject(uint ObjectId, GameObjectManager ObjectManager) : base(ObjectId, GameObjectType.Module, ObjectManager)
        {
            //
            // Discover pre-created areas in the module.  Instanced areas will
            // be discovered when they are created.
            //

            foreach (uint AreaObjectId in Script.GetAreas())
            {
                AreaObject Area = new AreaObject(AreaObjectId, ObjectManager);

                Areas.Add(Area);
            }
        }