Skip to content

[Core] Implement Events #23

Description

@Lecrapouille

rate random X days

# DISASTER / EMERGENCY HOOKS
#
# These are intentionally events rather than continuous simulation rules.
# =============================================================================

events

    event Fire
        affects FireHazard
        creates FireAgent
    end

    event Earthquake
        affects [
            Buildings
            Roads
            Utilities
            Water
            Power
        ]
    end

    event Tornado
        affects [
            Buildings
            Roads
            Traffic
        ]
    end

    event Meteor
        affects [
            Buildings
            Pollution
            FireHazard
        ]
    end

    event NuclearAccident
        affects [
            Radiation
            Health
            GroundPollution
            WaterPollution
        ]
    end

end```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions