Skip to content

Commit

Permalink
Update APIs (NWNX: 993ec66d, NWN: 8193.35-40).
Browse files Browse the repository at this point in the history
  • Loading branch information
jhett12321 committed Jul 4, 2023
1 parent e2012fc commit 66006c0
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 1,429 deletions.
24 changes: 12 additions & 12 deletions src/main/API/CExoString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,33 +401,33 @@ public VectorCExoString Split(CExoString delimiter) {
return ret;
}

public static CExoString FormatBytes(ulong param_1) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatBytes(param_1), true);
public static CExoString FormatBytes(ulong bytes) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatBytes(bytes), true);
return ret;
}

public static CExoString FormatDuration(ulong param_1, int param_2, int param_3, bool param_4, byte* param_5) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_0(param_1, param_2, param_3, param_4, param_5), true);
public static CExoString FormatDuration(ulong span, int compact_levels, int min_level, bool label_fields, byte* separator) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_0(span, compact_levels, min_level, label_fields, separator), true);
return ret;
}

public static CExoString FormatDuration(ulong param_1, int param_2, int param_3, bool param_4) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_1(param_1, param_2, param_3, param_4), true);
public static CExoString FormatDuration(ulong span, int compact_levels, int min_level, bool label_fields) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_1(span, compact_levels, min_level, label_fields), true);
return ret;
}

public static CExoString FormatDuration(ulong param_1, int param_2, int param_3) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_2(param_1, param_2, param_3), true);
public static CExoString FormatDuration(ulong span, int compact_levels, int min_level) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_2(span, compact_levels, min_level), true);
return ret;
}

public static CExoString FormatDuration(ulong param_1, int param_2) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_3(param_1, param_2), true);
public static CExoString FormatDuration(ulong span, int compact_levels) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_3(span, compact_levels), true);
return ret;
}

public static CExoString FormatDuration(ulong param_1) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_4(param_1), true);
public static CExoString FormatDuration(ulong span) {
CExoString ret = new CExoString(NWNXLibPINVOKE.CExoString_FormatDuration__SWIG_4(span), true);
return ret;
}

Expand Down
22 changes: 20 additions & 2 deletions src/main/API/CNWSModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1329,8 +1329,26 @@ public int InterAreaDFS(int level, int depth, CPathfindInformation pcPathfindInf
return retVal;
}

public uint LoadModuleStart(CExoString param_1, int param_2, int param_3, Advertisement param_4) {
uint retVal = NWNXLibPINVOKE.CNWSModule_LoadModuleStart(swigCPtr, CExoString.getCPtr(param_1), param_2, param_3, Advertisement.getCPtr(param_4));
public uint LoadModuleStart(CExoString sModuleName, int bIsSaveGame, int nSourceType, Advertisement nwsyncModuleSourceAdvert) {
uint retVal = NWNXLibPINVOKE.CNWSModule_LoadModuleStart__SWIG_0(swigCPtr, CExoString.getCPtr(sModuleName), bIsSaveGame, nSourceType, Advertisement.getCPtr(nwsyncModuleSourceAdvert));
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public uint LoadModuleStart(CExoString sModuleName, int bIsSaveGame, int nSourceType) {
uint retVal = NWNXLibPINVOKE.CNWSModule_LoadModuleStart__SWIG_1(swigCPtr, CExoString.getCPtr(sModuleName), bIsSaveGame, nSourceType);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public uint LoadModuleStart(CExoString sModuleName, int bIsSaveGame) {
uint retVal = NWNXLibPINVOKE.CNWSModule_LoadModuleStart__SWIG_2(swigCPtr, CExoString.getCPtr(sModuleName), bIsSaveGame);
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}

public uint LoadModuleStart(CExoString sModuleName) {
uint retVal = NWNXLibPINVOKE.CNWSModule_LoadModuleStart__SWIG_3(swigCPtr, CExoString.getCPtr(sModuleName));
if (NWNXLibPINVOKE.SWIGPendingException.Pending) throw NWNXLibPINVOKE.SWIGPendingException.Retrieve();
return retVal;
}
Expand Down
Loading

0 comments on commit 66006c0

Please sign in to comment.