A class that can be used to quickly create create identical Instructions for individual targets.
Cannot be serialized as an InstructionBlueprint, but can be converted into an InstructionSave via InstructionSave.FromInstructionBlueprint().
Beispiel #1
0
 public void SetValuesFromTemplate(FlatRedBall.Instructions.InstructionBlueprint template)
 {
     Type       = template.MemberType.FullName;
     Member     = template.MemberName;
     Value      = template.MemberValue as object;
     Time       = template.Time;
     TargetName = template.TargetType.FullName;
 }
Beispiel #2
0
        public static InstructionSave FromInstructionBlueprint(FlatRedBall.Instructions.InstructionBlueprint template)
        {
            InstructionSave toReturn = new InstructionSave();

            toReturn.SetValuesFromTemplate(template);

            return(toReturn);
        }