Exemplo n.º 1
0
 public PSForceRunSpeedChange(ObjectGUID GUID, float speed)
     : base(WorldOpcodes.SMSG_FORCE_RUN_SPEED_CHANGE)
 {
     this.Write(GUID.RawGUID);
     this.Write((uint)0);
     this.Write(speed);
 }
Exemplo n.º 2
0
 public void AddCreatureEntity(creature creature)
 {
     var guid = new ObjectGUID((ulong)creature.guid, TypeID.TYPEID_UNIT);
     var creatureEntity = new CreatureEntity(guid, creature, vanillaWorld);
     CreatureEntities.Add(creatureEntity);
     creatureEntity.Setup();
 }
Exemplo n.º 3
0
 public PlayerEntity AddPlayerEntity(character character, WorldSession session)
 {
     ObjectGUID guid = new ObjectGUID((ulong)character.guid, TypeID.TYPEID_PLAYER);
     PlayerEntity playerEntity = new PlayerEntity(guid, character, session);
     PlayerEntities.Add(playerEntity);
     playerEntity.Setup();
     return playerEntity;
 }
Exemplo n.º 4
0
 public void AddGameObjectEntity(gameobject gameObject)
 {
     var guid = new ObjectGUID((ulong)gameObject.guid, TypeID.TYPEID_GAMEOBJECT);
     var template = vanillaWorld.WorldDatabase.GetRepository<gameobject_template>().SingleOrDefault(t => t.entry == gameObject.id);
     var gameObjectEntity = new GameObjectEntity(guid, gameObject, template);
     GameObjectEntities.Add(gameObjectEntity);
     gameObjectEntity.Setup();
 }
Exemplo n.º 5
0
 public Item()
 {
     GUID = new ObjectGUID(TypeID.TYPEID_ITEM, HighGUID.HIGHGUID_ITEM);
 }
Exemplo n.º 6
0
 protected Entity(ObjectGUID objectGUID)
 {
     ObjectGUID   = objectGUID;
     SubscribedBy = new List <Session>();
 }