示例#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);
        }
示例#2
0
        private static void EditDescriptionScript(object description)
        {
            EventDescriptionModel model = description as EventDescriptionModel;

            model?.EditDescScript();
        }