public OutdoorItem(DBHouseOutdoorItem dbitem) { Model = dbitem.Model; Position = dbitem.Position; Rotation = dbitem.Rotation; BaseItem = GameServer.Database.FindObjectByKey<ItemTemplate>(dbitem.BaseItemID); DatabaseItem = dbitem; }
public DBHouseOutdoorItem CreateDBOutdoorItem(int houseNumber) { var dbitem = new DBHouseOutdoorItem { HouseNumber = houseNumber, Model = Model, Position = Position, BaseItemID = BaseItem.Id_nb, Rotation = Rotation }; return dbitem; }