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

			return dbitem;
		}