Example #1
0
        public void Construct()
        {
            foreach (AddonComponent c in Components)
            {
                c.Addon = null;
                c.Delete();
            }

            Components.Clear();

            MiniHouseInfo info = MiniHouseInfo.GetInfo(m_Type);

            int size = (int)Math.Sqrt(info.Graphics.Length);
            int num  = 0;

            for (int y = 0; y < size; ++y)
            {
                for (int x = 0; x < size; ++x)
                {
                    if (info.Graphics[num] != 0x1) // Veteran Rewards Mod
                    {
                        AddComponent(new AddonComponent(info.Graphics[num++]), size - x - 1, size - y - 1, 0);
                    }
                }
            }
        }
Example #2
0
        }                                                           // a mini house deed

        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(MiniHouseInfo.GetInfo(m_Type).LabelNumber);
        }