예제 #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            reader.ReadInt();

            Type = (TrellisType)reader.ReadInt();
        }
예제 #2
0
        public FloweredTrellisAddon(TrellisType type, bool south)
        {
            Type = type;

            int[,] list;

            switch (type)
            {
            default:
            case TrellisType.Leafy: list = south ? _LeafySouth : _LeafyEast; break;

            case TrellisType.Rose: list = south ? _RoseSouth : _RoseEast; break;

            case TrellisType.Bigflow: list = south ? _BigflowSouth : _BigflowEast; break;
            }

            for (int i = 0; i < list.Length / 4; i++)
            {
                AddComponent(new AddonComponent(list[i, 0]), list[i, 1], list[i, 2], list[i, 3]);
            }
        }
예제 #3
0
 public FloweredTrellisDeed(TrellisType type)
 {
     Type     = type;
     LootType = LootType.Blessed;
 }