Core/Entities: Created factory methods to create new areatriggers, creatures and gameobjects

This commit is contained in:
hondacrx
2018-01-27 20:15:24 -05:00
parent 854ae39aeb
commit 419ee1b882
19 changed files with 382 additions and 328 deletions
+2 -2
View File
@@ -2043,8 +2043,8 @@ namespace Game.Entities
}
Map map = GetMap();
GameObject go = new GameObject();
if (!go.Create(entry, map, pos, rotation, 255, GameObjectState.Ready))
GameObject go = GameObject.CreateGameObject(entry, map, pos, rotation, 255, GameObjectState.Ready);
if (!go)
return null;
go.CopyPhaseFrom(this);