Ejemplo n.º 1
0
        internal static SimObjectError createError(Behavior behavior, Exception e)
        {
            var error = new SimObjectError()
            {
                Subsystem = "Behavior",
                Message   = e.Message
            };

            error.ElementName = behavior.Name;
            error.SimObject   = behavior.Owner != null ? behavior.Owner.Name : "NullSimObject";
            error.Type        = behavior.GetType().Name;

            return(error);
        }
Ejemplo n.º 2
0
 protected override EditInterface createEditInterface()
 {
     if (editInterface == null)
     {
         editInterface = ReflectedEditInterface.createEditInterface(behaviorTemplate, BehaviorEditMemberScanner.Scanner, Name + " - " + behaviorTemplate.GetType().Name, null);
         behaviorTemplate.callCustomizeEditInterface(editInterface);
         editInterface.IconReferenceTag = EngineIcons.Behavior;
     }
     return(editInterface);
 }