示例#1
0
    private void QueueActionWithCharacter( AbilityData i_dataAbility, DefaultModel i_model ) {
        // create the queued action and add it to our queue
        QueuedAction action = new QueuedAction( i_model, i_dataAbility );
        m_queueActions.Enqueue( action );

       // Debug.Log( i_dataCharacter.Name + " is queuing " + i_dataAbility.Name );
    }
示例#2
0
 public DefaultModel GetUser()
 {
     DefaultModel user = new DefaultModel()
     {
         UserName = Environment.UserName,
         UserDomainName = Environment.UserDomainName,
         MachineName = Environment.MachineName,
         OSVersionString = Environment.OSVersion.VersionString
     };
     return user;
 }
示例#3
0
    //////////////////////////////////////////
    /// SetModel()
    /// Sets the model that this view is for.
    //////////////////////////////////////////
    public void SetModel( DefaultModel i_model ) {
        // null check for safety
        ModelToView = i_model;
        if ( i_model == null ) {
            Debug.LogError( "PropertyView has null model: " + PropertyName );
        }

        // if the model doesn't have the property, we want to create it
        bool bHas = ModelToView.HasProperty( PropertyName );
        if ( bHas == false )
            ModelToView.CreateProperty( PropertyName );

        // get and save the property's guid for message listening
        Property property = ModelToView.GetProperty( PropertyName );
        System.Guid guid = property.GetID();
        SetPropertyID( guid, !bHas );
    }
示例#4
0
 public QueuedAction( DefaultModel i_char, AbilityData i_ability ) {
     m_strCharacterID = i_char.GetPropertyValue<string>( "Name" );
     m_dataAbility = i_ability;
 }
 public string Default(DefaultModel model)
 {
     return "welcome to the default view";
 }