Esempio n. 1
0
        public static Event_Processor read(BinaryReader reader)
        {
            Event_Processor processor = new Event_Processor(reader.ReadInt32());

            if (!Global.LOADED_VERSION.older_than(0, 4, 5, 0))
            {
                processor.Parent_Id = reader.ReadInt32();
            }
            processor.Index = reader.ReadInt32();
            return(processor);
        }
Esempio n. 2
0
        public void end(Event_Processor parent = null)
        {
            if (Global.scene.is_map_scene)
            {
                Global.game_state.event_handler.event_completed(name);
            }

            if (parent == null)
            {
                if (Unit_Moved)
                {
                    Global.game_map.refresh_move_ranges(true);
                }
            }
            else
            {
                parent.Unit_Moved |= Unit_Moved;
            }
        }