private static string ResolveInfoStatusItemString(string format_str, object data)
    {
        LogicMemory logicMemory = (LogicMemory)data;
        int         outputValue = logicMemory.ports.GetOutputValue(READ_PORT_ID);

        return(string.Format(BUILDINGS.PREFABS.LOGICMEMORY.STATUS_ITEM_VALUE, outputValue));
    }
Example #2
0
        public override void Init(MyObjectBuilder_BehaviorTreeNodeMemory builder)
        {
            base.Init(builder);

            var ob = builder as MyObjectBuilder_BehaviorTreeDecoratorNodeMemory;

            ChildState           = ob.ChildState;
            DecoratorLogicMemory = GetLogicMemoryByBuilder(ob.Logic);
        }
Example #3
0
 public FormMemory()
 {
     InitializeComponent();
     Logic = new LogicMemory(this);
     Logic.CreateNewGame();
 }
Example #4
0
 // Use this for initialization
 void Start()
 {
     logic = new LogicMemory(this);
     logic.CreateNewGame();
 }
        public override void Init(MyObjectBuilder_BehaviorTreeNodeMemory builder)
        {
            base.Init(builder);

            var ob = builder as MyObjectBuilder_BehaviorTreeDecoratorNodeMemory;
            ChildState = ob.ChildState;
            DecoratorLogicMemory = GetLogicMemoryByBuilder(ob.Logic);
        }