Esempio n. 1
0
 public override void AddFields(FieldData fields)
 {
     base.AddFields(fields);
     value1     = fields.add(value1, "value1");
     comparison = fields.addEnum(comparison, "comparison");
     value2     = fields.add(value2, "value2");
 }
Esempio n. 2
0
        public static void Load()
        {
            ReflectionConstructor <Story> .Register("Story");

            ReflectionConstructor <Character> .Register("Character");

            ReflectionConstructor <Item> .Register("Item");

            ReflectionConstructor <History> .Register("History");

            ReflectionConstructor <Journey> .Register("Journey");

            ReflectionConstructor <Variable> .Register("Variable");

            ReflectionConstructor <City> .Register("City");

            ReflectionConstructor <Location> .Register("Location");

            ReflectionConstructor <LocationScenario> .Register("Scene");

            ReflectionConstructor <LocationScenario> .Register("LocationScenario");

            ReflectionConstructor <JourneyScenario> .Register("JourneyScenario");

            ReflectionConstructor <Page> .Register("Page");

            ReflectionConstructor <Actor> .Register("ScenarioActor");

            ReflectionConstructor <Objective> .Register("Objective");

            ReflectionConstructor <Alignment> .Register("Alignment");

            ReflectionConstructor <Point2D> .Register("Point2D");

            ReflectionConstructor <ConditionOutcome> .Register("Condition");

            ReflectionConstructor <ConditionOutcome> .Register("ConditionOutcome");

            ReflectionConstructor <GlobalEvent> .Register("GlobalEvent");

            ReflectionConstructor <TestResources> .Register("TestResources");

            ReflectionConstructor <Skill> .Register("Skill");

            ReflectionConstructor <Clue> .Register("Clue");

            Condition.Register();
            GameValue.Register();
            StoryEvent.Load();
        }
Esempio n. 3
0
 public override void AddFields(FieldData fields)
 {
     base.AddFields(fields);
     fields.addReference(variable, "varRef");
     operation = fields.addEnum(operation, "operation");
     value     = fields.add(value, "gameValue");
     if (fields.readMode())
     {
         int v = fields.add(0, "value");
         if (v != 0)
         {
             NumberValue nv = new NumberValue();
             nv.value = v;
             value    = nv;
         }
     }
 }