createPublic() public method

public createPublic ( ) : COMMAND_INFO
return COMMAND_INFO
Exemplo n.º 1
0
        public RESULT getCommandInfo(int commandIndex, out COMMAND_INFO info)
        {
            COMMAND_INFO_INTERNAL cOMMAND_INFO_INTERNAL = default(COMMAND_INFO_INTERNAL);
            RESULT rESULT = CommandReplay.FMOD_Studio_CommandReplay_GetCommandInfo(this.rawPtr, commandIndex, out cOMMAND_INFO_INTERNAL);

            if (rESULT != RESULT.OK)
            {
                info = default(COMMAND_INFO);
                return(rESULT);
            }
            info = cOMMAND_INFO_INTERNAL.createPublic();
            return(rESULT);
        }
Exemplo n.º 2
0
 public RESULT getCommandInfo(int commandIndex, out COMMAND_INFO info)
 {
     COMMAND_INFO_INTERNAL internalInfo = new COMMAND_INFO_INTERNAL();
     FMOD.RESULT result = FMOD_Studio_CommandReplay_GetCommandInfo(rawPtr, commandIndex, out internalInfo);
     if (result != FMOD.RESULT.OK)
     {
         info = new COMMAND_INFO();
         return result;
     }
     info = internalInfo.createPublic();
     return result;
 }