Exemplo n.º 1
0
        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref _collisionEnabled, "on", true);
            serializer.DataField(ref _isHardCollidable, "hard", true);
        }
Exemplo n.º 2
0
        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref OpenSprite, "openstate", "Objects/door_ewo.png");
            serializer.DataField(ref CloseSprite, "closestate", "Objects/door_ew.png");
        }
        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref Damage, "damage", 5);
            serializer.DataField(ref Range, "damage", 1);
            serializer.DataField(ref ArcWidth, "damage", 90);
        }
        string TemplateName = "HumanInventory"; //stored for serialization purposes

        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref TemplateName, "Template", "HumanInventory");
            CreateInventory(TemplateName);
        }
Exemplo n.º 5
0
        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            Window          = new InventoryWindow(this);
            OpenMenuCommand = InputCommand.FromDelegate(() => { Window.AddToScreen(); Window.Open(); });
            serializer.DataField(ref TemplateName, "Template", "HumanInventory");
            Window.CreateInventory(TemplateName);
        }
        private List <string> slotstrings = new List <string>();    //serialization

        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref slotstrings, "Slots", new List <string>(0));

            foreach (var slotflagsloaded in slotstrings)
            {
                SlotFlags |= (SlotFlags)Enum.Parse(typeof(SlotFlags), slotflagsloaded.ToUpper());
            }
        }
 public override void ExposeData(EntitySerializer serializer)
 {
     serializer.DataField(ref Visualizers, "visuals", new List <AppearanceVisualizer>());
 }
        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref StorageCapacityMax, "Capacity", 10000);
        }
Exemplo n.º 9
0
        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref ObjectSize, "Size", 1);
        }
        public override void ExposeData(EntitySerializer serializer)
        {
            base.ExposeData(serializer);

            serializer.DataField(ref _debugColor, "DebugColor", Color.Red);
        }