public VMGameObject CreateObject(XmlHouseDataObject obj) { var objDefinition = Content.Get().WorldObjects.Get(obj.GUIDInt); if (objDefinition == null) { return(null); } var worldObject = new ObjectComponent(objDefinition); worldObject.Direction = obj.Direction; var vmObject = new VMGameObject(objDefinition, worldObject); VM.AddEntity(vmObject); Blueprint.ChangeObjectLocation(worldObject, (short)obj.X, (short)obj.Y, (sbyte)obj.Level); return(vmObject); }