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)); }
public override void Init(MyObjectBuilder_BehaviorTreeNodeMemory builder) { base.Init(builder); var ob = builder as MyObjectBuilder_BehaviorTreeDecoratorNodeMemory; ChildState = ob.ChildState; DecoratorLogicMemory = GetLogicMemoryByBuilder(ob.Logic); }
public FormMemory() { InitializeComponent(); Logic = new LogicMemory(this); Logic.CreateNewGame(); }
// Use this for initialization void Start() { logic = new LogicMemory(this); logic.CreateNewGame(); }