示例#1
0
        public void Create(BehaviorCreationTypes type)
        {
            CreateNewBehaviorscript();

            switch (type)
            {
            case BehaviorCreationTypes.SolidObject:
                Script.Add(new BehaviorscriptCommand("00 09 00 00"));
                Script.Add(new BehaviorscriptCommand("11 01 00 01"));
                Script.Add(new BehaviorscriptCommand("2a 00 00 00 00 00 00 00"));
                Script.Add(new BehaviorscriptCommand("08 00 00 00"));
                Script.Add(new BehaviorscriptCommand("0c 00 00 00 80 38 39 cc"));
                Script.Add(new BehaviorscriptCommand("09 00 00 00"));
                break;
            }

            ParseScript();
        }
示例#2
0
 public Behavior(BehaviorCreationTypes behaviorCreationType) : this()
 {
     Create(behaviorCreationType);
 }