Core/Entities: Created factory methods to create new areatriggers, creatures and gameobjects
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user