コード例 #1
0
ファイル: TextController.cs プロジェクト: sballmer/Unity
    void addToData(State state, string text)
    {
        // create data to add
        StateContent temp = new StateContent();

        // add the text
        temp._text = text;

        // add the possibilities by taking care of the number of default variables
        temp._possibility = new Access [0];

        // adding data
        this.data.Add(state, temp);
    }
コード例 #2
0
ファイル: GenericState.cs プロジェクト: ohadc7/Ex2A
 /// <summary>
 /// Equalses the specified s according to its content.
 /// </summary>
 /// <param name="s">The s.</param>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 public bool Equals(GenericState <T> s)
 {
     return(StateContent.Equals(s.StateContent));
 }
コード例 #3
0
ファイル: GenericState.cs プロジェクト: ohadc7/Ex2A
 /// <summary>
 /// Returns a hash code for this instance according to its content.
 /// </summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     return(StateContent.GetHashCode());
 }
コード例 #4
0
ファイル: FSM_State.cs プロジェクト: vmpvmp2929/KID_Tetris
 public void AddContent_Leave(StateContent Content)
 {
     this.Content_Leave += Content;
 }
コード例 #5
0
ファイル: FSM_State.cs プロジェクト: vmpvmp2929/KID_Tetris
 public void AddContent_Update(StateContent Content)
 {
     this.Content_Update += Content;
 }
コード例 #6
0
ファイル: FSM_State.cs プロジェクト: vmpvmp2929/KID_Tetris
 public void AddContent_Enter(StateContent Content)
 {
     this.Content_Enter += Content;
 }