Example #1
0
        public void setDefaults(string EventNamespace)
        {
            if (string.IsNullOrEmpty(EventNamespace))
            {
                EventNamespace = "namespace";
            }
            id             = EventNamespace + ".0";
            picture        = "event_test";
            type           = EventType.country_event;
            internalScript = new Script();
            EventDescriptionModel newDesc = new EventDescriptionModel();

            newDesc.setDefaults();
            Descriptions.Add(newDesc);
            EventOptionModel newOptions = new EventOptionModel();

            newOptions.setDefaults();
            Options.Add(newOptions);
        }
Example #2
0
        private static void EditOptionScript(object option)
        {
            EventOptionModel model = option as EventOptionModel;

            model?.EditOptionScript();
        }