Наследование: GalaSoft.MvvmLight.ObservableObject
Пример #1
0
        public static void LoadPressurePlate(BinaryReader r, World w)
        {
            int count = r.ReadInt32();

            for (int counter = 0; counter < count; counter++)
            {
                PressurePlate plates = new PressurePlate();
                plates.PosX = r.ReadInt32();
                plates.PosY = r.ReadInt32();
                w.PressurePlates.Add(plates);
            }
        }
Пример #2
0
        public static void LoadPressurePlate(BinaryReader r, World w)
        {
            int count = r.ReadInt32();

            for (int counter = 0; counter < count; counter++ )
            {
                PressurePlate plates = new PressurePlate();
                plates.PosX = r.ReadInt32();
                plates.PosY = r.ReadInt32();
                w.PressurePlates.Add(plates);
            }
        }