User Tools

Site Tools


en:tutorials:community:acksys:commandnotes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
en:tutorials:community:acksys:commandnotes [2018/02/14 04:46 (17 months ago)]
iarwain ↷ Page moved from tutorials:community:acksys:commandnotes to en:tutorials:community:acksys:commandnotes
en:tutorials:community:acksys:commandnotes [2019/06/14 10:05 (5 weeks ago)]
sausage Replace core commands with the easy to read list
Line 27: Line 27:
  
 <​code>​ <​code>​
-CommandHelp, "​Help",​ orxCOMMAND_VAR_TYPE_STRING,​ 0, 1, {"Command ​= \"​\"",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.Create 
-CommandListCommands, "​Counter",​ orxCOMMAND_VAR_TYPE_U32,​ 0, 1, {"​Prefix = \"​\"",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.Delete 
-Command, AddAlias, "​Alias",​ orxCOMMAND_VAR_TYPE_STRING,​ 2, 1, {"​Alias",​ orxCOMMAND_VAR_TYPE_STRING},​ {"Command/​Alias",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Arguments",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.Get 
-CommandRemoveAlias, "​Alias",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"​Alias",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.GetID 
-Command, ListAliases,​ "​Counter",​ orxCOMMAND_VAR_TYPE_U32,​ 0, 1, {"​Prefix = \"​\"",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.GetName 
-Config, Load, "​Success?",​ orxCOMMAND_VAR_TYPE_BOOL,​ 1, 0, {"​FileName",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.GetParent 
-Config, Save, "​Success?",​ orxCOMMAND_VAR_TYPE_BOOL,​ 1, 2, {"​FileName",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​OnlyOrigin = false",​ orxCOMMAND_VAR_TYPE_BOOL},​ {"​Encrypt = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Camera.GetPosition 
-Config, Reload, "​Success?",​ orxCOMMAND_VAR_TYPE_BOOL,​ 0, 0); +Camera.GetRotation 
-ConfigGetParent, "​Parent",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.GetZoom 
-Config, SetParent, "​Section",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 1, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Parent = <​void>",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.SetFrustum 
-Config, CreateSection,​ "​Section",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.SetParent 
-ConfigHasSection, "​Section?",​ orxCOMMAND_VAR_TYPE_BOOL,​ 1, 0, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.SetPosition 
-Config, ClearSection,​ "​Section",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.SetRotation 
-Config, HasValue, "​Value?",​ orxCOMMAND_VAR_TYPE_BOOL,​ 2, 0, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Key",​ orxCOMMAND_VAR_TYPE_STRING});​ +Camera.SetZoom 
-Config, GetValue, "​Value",​ orxCOMMAND_VAR_TYPE_STRING,​ 2, 1, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Key",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​[Index = -1]", orxCOMMAND_VAR_TYPE_S32});​ +Clock.SetFrequency 
-Config, SetValue, "​Value",​ orxCOMMAND_VAR_TYPE_STRING,​ 3, 0, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Key",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Value",​ orxCOMMAND_VAR_TYPE_STRING});​ +Clock.SetModifier 
-Config, GetListCounter,​ "​Counter",​ orxCOMMAND_VAR_TYPE_S32,​ 2, 0, {"​Section",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Key",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.Add 
-Locale, SelectLanguage,​ "​Language",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"​Language",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.AddAlias 
-Locale, GetCurrentLanguage,​ "​Language",​ orxCOMMAND_VAR_TYPE_STRING,​ 0, 0); +Command.And 
-Locale, SetString, "​Key",​ orxCOMMAND_VAR_TYPE_STRING,​ 2, 0, {"​Key",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​String",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.AreEqual 
-Locale, GetString, "​String",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"​Key",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.Clamp 
-Screenshot, Capture, "​File",​ orxCOMMAND_VAR_TYPE_STRING,​ 0, 0); +Command.Compare 
-Input, SelectSet, "​Set",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"​Set",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.CRC 
-InputGetCurrentSet, "​Set",​ orxCOMMAND_VAR_TYPE_STRING,​ 0, 0); +Command.Divide 
-Input, SetValue, "Input", orxCOMMAND_VAR_TYPE_STRING,​ 2, 1, {"Input", orxCOMMAND_VAR_TYPE_STRING},​ {"​Value",​ orxCOMMAND_VAR_TYPE_FLOAT},​ {"​Permanent = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.Evaluate 
-InputResetValue, "Input", orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"​Input",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.EvaluateIf 
-Input, GetValue, "​Value",​ orxCOMMAND_VAR_TYPE_FLOAT,​ 1, 0, {"​Input",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.Exit 
-MouseGetPosition, "​Position",​ orxCOMMAND_VAR_TYPE_VECTOR,​ 0, 0); +Command.GetClipboard 
-MouseSetPosition, "​Position",​ orxCOMMAND_VAR_TYPE_VECTOR,​ 1, 0, {"​Position",​ orxCOMMAND_VAR_TYPE_VECTOR});​ +Command.GetStringFromID 
-MouseShowCursor, "​Shown",​ orxCOMMAND_VAR_TYPE_BOOL,​ 1, 0, {"​Shown",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.GetStringID 
-Object, Create, "Object", orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"​Name",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.Help 
-Object, Delete, "Object", orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"Object", orxCOMMAND_VAR_TYPE_U64});​ +Command.If 
-Object, GetID, "Object", orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"Object", orxCOMMAND_VAR_TYPE_U64});​ +Command.IsGreater 
-Object, SetPosition,​ "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Position",​ orxCOMMAND_VAR_TYPE_VECTOR},​ {"​Global = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.IsLesser 
-Object, SetRotation,​ "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Rotation",​ orxCOMMAND_VAR_TYPE_FLOAT},​ {"​Global = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.ListAliases 
-Object, SetScale, "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Scale",​ orxCOMMAND_VAR_TYPE_VECTOR},​ {"​Global = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.ListCommands 
-Object, GetPosition,​ "​Position",​ orxCOMMAND_VAR_TYPE_VECTOR,​ 1, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Global = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.LogAllStructures 
-Object, GetRotation,​ "​Rotation",​ orxCOMMAND_VAR_TYPE_FLOAT,​ 1, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Global = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.Maximum 
-Object, GetScale, "​Scale",​ orxCOMMAND_VAR_TYPE_VECTOR,​ 1, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Global = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.Minimum 
-Object, SetSpeed, "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Speed",​ orxCOMMAND_VAR_TYPE_VECTOR},​ {"​Relative = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.Multiply 
-Object, SetAngularVelocity,​ "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​AngularVelocity",​ orxCOMMAND_VAR_TYPE_FLOAT});​ +Command.Normalize 
-Object, SetCustomGravity,​ "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​CustomGravity",​ orxCOMMAND_VAR_TYPE_VECTOR});​ +Command.Not 
-Object, GetSpeed, "​Speed",​ orxCOMMAND_VAR_TYPE_VECTOR,​ 1, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Relative = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Command.Or 
-Object, GetAngularVelocity,​ "​AngularVelocity",​ orxCOMMAND_VAR_TYPE_FLOAT,​ 1, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64});​ +Command.RemoveAlias 
-Object, GetCustomGravity,​ "​CustomGravity",​ orxCOMMAND_VAR_TYPE_VECTOR,​ 1, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64});​ +Command.Repeat 
-Object, SetText, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Text",​ orxCOMMAND_VAR_TYPE_STRING});​ +Command.Return 
-ObjectGetText, "​Text",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"Object", orxCOMMAND_VAR_TYPE_U64});​ +Command.SetClipboard 
-Object, GetName, "​Name",​ orxCOMMAND_VAR_TYPE_STRING,​ 1, 0, {"Object", orxCOMMAND_VAR_TYPE_U64});​ +Command.Subtract 
-Object, SetLifeTime,​ "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​LifeTime",​ orxCOMMAND_VAR_TYPE_FLOAT});​ +Command.Version 
-Object, GetLifeTime,​ "​LifeTime",​ orxCOMMAND_VAR_TYPE_FLOAT,​ 1, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64});​ +Command.XOr 
-Object, SetColor, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Color",​ orxCOMMAND_VAR_TYPE_VECTOR});​ +Config.AppendValue 
-Object, GetColor, "​Color",​ orxCOMMAND_VAR_TYPE_VECTOR,​ 1, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64});​ +Config.ClearSection 
-ObjectSetAlpha, "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Alpha",​ orxCOMMAND_VAR_TYPE_FLOAT});​ +Config.ClearValue 
-Object, GetAlpha, "​Alpha",​ orxCOMMAND_VAR_TYPE_FLOAT,​ 1, 0, {"Object", orxCOMMAND_VAR_TYPE_U64});​ +Config.CreateSection 
-Object, Enable, "Object", orxCOMMAND_VAR_TYPE_U64,​ 2, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Enable",​ orxCOMMAND_VAR_TYPE_BOOL},​ {"​Recursive = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Config.GetCurrentSection 
-Object, Pause, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 1, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Pause",​ orxCOMMAND_VAR_TYPE_BOOL},​ {"​Recursive = false",​ orxCOMMAND_VAR_TYPE_BOOL});​ +Config.GetListCount 
-Object, SetParent, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 1, 1, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Parent = <​void>",​ orxCOMMAND_VAR_TYPE_U64});​ +Config.GetOrigin 
-Object, Attach, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 1, 1, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Parent = <​void>",​ orxCOMMAND_VAR_TYPE_U64});​ +Config.GetParent 
-Object, Detach, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64});​ +Config.GetRawValue 
-ObjectSetOwner, "Object", orxCOMMAND_VAR_TYPE_U64,​ 1, 1, {"Object", orxCOMMAND_VAR_TYPE_U64},​ {"​Owner = <​void>",​ orxCOMMAND_VAR_TYPE_U64});​ +Config.GetValue 
-Object, GetOwner, "​Owner",​ orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"Object", orxCOMMAND_VAR_TYPE_U64});​ +Config.HasSection 
-Object, GetOwnedChild,​ "Owned Child",​ orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64});​ +Config.HasValue 
-Object, GetOwnedSibling,​ "Owned Sibling",​ orxCOMMAND_VAR_TYPE_U64,​ 1, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64});​ +Config.Load 
-Object, AddTrack, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​TimeLine",​ orxCOMMAND_VAR_TYPE_STRING});​ +Config.Reload 
-Object, RemoveTrack,​ "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​TimeLine",​ orxCOMMAND_VAR_TYPE_STRING});​ +Config.Save 
-Object, AddFX, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​FX",​ orxCOMMAND_VAR_TYPE_STRING});​ +Config.SetParent 
-Object, RemoveFX, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​FX",​ orxCOMMAND_VAR_TYPE_STRING});​ +Config.SetValue 
-Object, AddShader, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Shader",​ orxCOMMAND_VAR_TYPE_STRING});​ +Console.Echo 
-Object, RemoveShader,​ "​Object",​ orxCOMMAND_VAR_TYPE_U65,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Shader",​ orxCOMMAND_VAR_TYPE_STRING});​ +Console.Enable 
-Object, AddSound, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"Sound", orxCOMMAND_VAR_TYPE_STRING});​ +Console.Log 
-Object, RemoveSound,​ "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"Sound", orxCOMMAND_VAR_TYPE_STRING});​ +Console.SetColor 
-Object, SetVolume, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Volume",​ orxCOMMAND_VAR_TYPE_FLOAT});​ +Input.EnableSet 
-Object, SetPitch, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 0, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Pitch",​ orxCOMMAND_VAR_TYPE_FLOAT});​ +Input.GetCurrentSet 
-Object, SetAnim, "​Object",​ orxCOMMAND_VAR_TYPE_U64,​ 2, 1, {"​Object",​ orxCOMMAND_VAR_TYPE_U64},​ {"​Anim",​ orxCOMMAND_VAR_TYPE_STRING},​ {"​Current = false",​ orxCOMMAND_VAR_TYPE_BOOL});​+Input.GetValue 
 +Input.HasNewStatus 
 +Input.IsActive 
 +Input.IsSetEnabled 
 +Input.ResetValue 
 +Input.SelectSet 
 +Input.SetValue 
 +Locale.GetCurrentLanguage 
 +Locale.GetString 
 +Locale.SelectLanguage 
 +Locale.SetString 
 +Mouse.GetPosition 
 +Mouse.SetCursor 
 +Mouse.SetPosition 
 +Mouse.ShowCursor 
 +Object.AddFX 
 +Object.AddShader 
 +Object.AddSound 
 +Object.AddTrack 
 +Object.Attach 
 +Object.Create 
 +Object.Delete 
 +Object.Detach 
 +Object.Enable 
 +Object.FindNext 
 +Object.GetAlpha 
 +Object.GetAngularVelocity 
 +Object.GetChild 
 +Object.GetClock 
 +Object.GetColor 
 +Object.GetCount 
 +Object.GetCustomGravity 
 +Object.GetGroup 
 +Object.GetHSL 
 +Object.GetHSV 
 +Object.GetID 
 +Object.GetLifeTime 
 +Object.GetName 
 +Object.GetOrigin 
 +Object.GetOwnedChild 
 +Object.GetOwnedSibling 
 +Object.GetOwner 
 +Object.GetParent 
 +Object.GetPivot 
 +Object.GetPosition 
 +Object.GetRepeat 
 +Object.GetRGB 
 +Object.GetRotation 
 +Object.GetScale 
 +Object.GetSibling 
 +Object.GetSize 
 +Object.GetSpeed 
 +Object.GetText 
 +Object.IsEnabled 
 +Object.IsPaused 
 +Object.Pause 
 +Object.Play 
 +Object.RemoveFX 
 +Object.RemoveShader 
 +Object.RemoveSound 
 +Object.RemoveTrack 
 +Object.SetAlpha 
 +Object.SetAngularVelocity 
 +Object.SetAnim 
 +Object.SetAnimFrequency 
 +Object.SetClock 
 +Object.SetColor 
 +Object.SetCustomGravity 
 +Object.SetGroup 
 +Object.SetHSL 
 +Object.SetHSV 
 +Object.SetLifeTime 
 +Object.SetOrigin 
 +Object.SetOwner 
 +Object.SetParent 
 +Object.SetPitch 
 +Object.SetPivot 
 +Object.SetPosition 
 +Object.SetRepeat 
 +Object.SetRGB 
 +Object.SetRotation 
 +Object.SetScale 
 +Object.SetSize 
 +Object.SetSpeed 
 +Object.SetText 
 +Object.SetVolume 
 +Object.Stop 
 +Render.GetScreenPosition 
 +Render.GetWorldPosition 
 +Resource.AddStorage 
 +Resource.GetPath 
 +Resource.GetTotalPendingOpCount 
 +Resource.Locate 
 +Resource.ReloadStorage 
 +Resource.RemoveStorage 
 +Screenshot.Capture 
 +Sound.GetBusChild 
 +Sound.GetBusParent 
 +Sound.GetBusPitch 
 +Sound.GetBusSibling 
 +Sound.GetBusVolume 
 +Sound.SetBusParent 
 +Sound.SetBusPitch 
 +Sound.SetBusVolume 
 +Texture.Create 
 +Texture.Delete 
 +Texture.Find 
 +Texture.GetLoadCount 
 +Texture.GetName 
 +Texture.GetSize 
 +Texture.Save 
 +Viewport.AddShader 
 +Viewport.Create 
 +Viewport.Delete 
 +Viewport.Enable 
 +Viewport.EnableShader 
 +Viewport.Get 
 +Viewport.GetCamera 
 +Viewport.GetID 
 +Viewport.GetName 
 +Viewport.GetPosition 
 +Viewport.GetRelativeSize 
 +Viewport.GetSize 
 +Viewport.IsEnabled 
 +Viewport.IsShaderEnabled 
 +Viewport.RemoveShader 
 +Viewport.SetBlendMode 
 +Viewport.SetCamera 
 +Viewport.SetPosition 
 +Viewport.SetRelativePosition 
 +Viewport.SetRelativeSize 
 +Viewport.SetSize
  
-/** Variable type enum 
- */ 
-typedef enum __orxCOMMAND_VAR_TYPE_t 
-{ 
-  orxCOMMAND_VAR_TYPE_STRING = 0, 
-  orxCOMMAND_VAR_TYPE_FLOAT,​ 
-  orxCOMMAND_VAR_TYPE_S32,​ 
-  orxCOMMAND_VAR_TYPE_U32,​ 
-  orxCOMMAND_VAR_TYPE_S64,​ 
-  orxCOMMAND_VAR_TYPE_U64,​ 
-  orxCOMMAND_VAR_TYPE_BOOL,​ 
-  orxCOMMAND_VAR_TYPE_VECTOR,​ 
- 
-  orxCOMMAND_VAR_TYPE_NUMBER,​ 
- 
-  orxCOMMAND_VAR_TYPE_NONE = orxENUM_NONE 
- 
-} orxCOMMAND_VAR_TYPE;​ 
- 
- 
-/** Variable definition structure 
- */ 
-typedef struct __orxCOMMAND_VAR_DEF_t 
-{ 
-  orxSTRING ​            ​zName; ​                       /**< Name : 4 */ 
-  orxCOMMAND_VAR_TYPE ​  ​eType; ​                       /**< Type : 8 */ 
- 
-} orxCOMMAND_VAR_DEF;​ 
- 
-/** Variable structure */ 
-typedef struct __orxCOMMAND_VAR_t 
-{ 
-  union 
-  { 
-    orxVECTOR ​          ​vValue; ​                      /​**<​ Vector value : 12 */ 
-    const orxSTRING ​    ​zValue; ​                      /​**<​ String value : 4 */ 
-    orxU32 ​             u32Value; ​                    /​**<​ U32 value : 4 */ 
-    orxS32 ​             s32Value; ​                    /​**<​ S32 value : 4 */ 
-    orxU64 ​             u64Value; ​                    /​**<​ U64 value : 8 */ 
-    orxS64 ​             s64Value; ​                    /​**<​ S64 value : 8 */ 
-    orxFLOAT ​           fValue; ​                      /​**<​ Float value : 4 */ 
-    orxBOOL ​            ​bValue; ​                      /​**<​ Bool value : 4 */ 
-  }; 
- 
-  orxCOMMAND_VAR_TYPE ​  ​eType; ​                       /**< Type : 16 */ 
- 
-} orxCOMMAND_VAR;​ 
- 
-/** Command function type */ 
-typedef void (orxFASTCALL *orxCOMMAND_FUNCTION)(orxU32 _u32ArgNumber,​ const orxCOMMAND_VAR *_astArgList,​ orxCOMMAND_VAR *_pstResult);​ 
- 
- 
-/** Command registration helpers 
- */ 
-#define orxCOMMAND_REGISTER_CORE_COMMAND(MODULE,​ COMMAND, RESULT_NAME,​ RESULT_TYPE,​ REQ_PARAM_NUMBER,​ OPT_PARAM_NUMBER,​ ...)                                \ 
-do                                                                                                                                                          \ 
-{                                                                                                                                                           \ 
-  orxCOMMAND_VAR_DEF ​ stResult; ​                                                                                                                            \ 
-  orxCOMMAND_VAR_DEF ​ astParamList[REQ_PARAM_NUMBER + OPT_PARAM_NUMBER + 1] = {__VA_ARGS__}; ​                                                               \ 
-  orxSTATUS ​          ​eStatus; ​                                                                                                                             \ 
-  stResult.eType ​   = RESULT_TYPE; ​                                                                                                                         \ 
-  stResult.zName ​   = RESULT_NAME; ​                                                                                                                         \ 
-  eStatus ​          = orxCommand_Register(#​MODULE"​."#​COMMAND,​ orx##​MODULE##​_Command##​COMMAND,​ 
-                      REQ_PARAM_NUMBER,​ OPT_PARAM_NUMBER,​ astParamList,​ &​stResult);​ \ 
-  orxASSERT(eStatus != orxSTATUS_FAILURE); ​                                                                                                                 \ 
-} while(orxFALSE) 
- 
-#define orxCOMMAND_UNREGISTER_CORE_COMMAND(MODULE,​ COMMAND) ​                                                                                                \ 
-do                                                                                                                                                          \ 
-{                                                                                                                                                           \ 
-  orxCommand_Unregister(#​MODULE"​."#​COMMAND); ​                                                                                                               \ 
-} while(orxFALSE) 
 </​code>​ </​code>​
  
en/tutorials/community/acksys/commandnotes.txt · Last modified: 2019/06/14 10:13 (5 weeks ago) by sausage