public ActionsSerialized(SerializationInfo info, StreamingContext ctxt) { nodes = (InvariableIndexList<ActionNode>)info.GetValue( ACTIONNODE, typeof(InvariableIndexList<ActionNode>)); actions = (InvariableIndexList<ActionInterface>)info.GetValue( ACTION, typeof(InvariableIndexList<ActionInterface>)); currentNode = (int)info.GetValue(CURRENTNODE, typeof(int)); preferredTileMap = (string)info.GetValue(TILEMAP, typeof(string)); }
public void SetData(InvariableIndexList<ActionNode> p_nodes, InvariableIndexList<ActionInterface> p_actions) { m_nodes = p_nodes; m_actions = p_actions; }
public void ResetData() { m_currentNodeId=-1; m_startNodeId=-1; scrollOffset = Vector2.Zero; scrollInputBuffer=Vector2.Zero; m_renderOffset = new Vector2(30, 50); m_nodes = new InvariableIndexList<ActionNode>(); m_actions = new InvariableIndexList<ActionInterface>(); m_currentNodeId = addAction(null); m_startNodeId = m_currentNodeId; }
public void Clear(int p_startId=-1) { scrollOffset = Vector2.Zero; scrollInputBuffer = Vector2.Zero; m_renderOffset = new Vector2(30, 50); m_currentNodeId = p_startId; m_startNodeId = p_startId; m_nodes = new InvariableIndexList<ActionNode>(); m_actions = new InvariableIndexList<ActionInterface>(); }