Permalink
Browse files

2018-02-09

  • Loading branch information...
codecat committed Feb 9, 2018
1 parent 5f94416 commit b106d3c605e269c4e1d8332131956803cd3258d6
Showing with 61 additions and 16 deletions.
  1. +61 −16 Openplanet.h
@@ -402,6 +402,7 @@ struct CGameTerminal : public CMwNod {
_SpectatorCam_Auto = 1,
};
CGamePlayer* ControlledPlayer;
CGamePlayer* GUIPlayer;
CGamePlayerCameraSet* const CameraSet;
CGameCtnMediaClipPlayer* const MediaClipPlayer;
CGameCtnMediaClipPlayer* const MediaAmbianceClipPlayer;
@@ -5790,6 +5791,10 @@ struct CGameServerPlugin : public CMwNod {
void TriggerModeScriptEvent2(wstring Type, MwBuffer<wstring>& Data); // Maniascript
const bool MapLoaded; // Maniascript
const MwBuffer<CGameCtnChallengeInfo*> MapList; // Maniascript
const uint CurMapIndex; // Maniascript
uint NextMapIndex; // Maniascript
void RestartMap(); // Maniascript
void NextMap(); // Maniascript
CGamePlaygroundUIConfigMgrScript* const UIManager; // Maniascript
CGameScriptServerAdmin* const ServerAdmin; // Maniascript
CXmlScriptManager* const Xml; // Maniascript
@@ -5801,8 +5806,8 @@ struct CGameServerPlugin : public CMwNod {
struct CGameServerPluginEvent : public CMwNod {
enum EType {
Unknown = 0,
PlayerAdded = 1,
PlayerRemoved = 2,
ClientConnected = 1,
ClientDisconnected = 2,
MapLoaded = 3,
MapUnloaded = 4,
BeginRound = 5,
@@ -5866,6 +5871,7 @@ struct CGameConnectedClient : public CMwNod {
const string ClientVersion; // Maniascript
const string ClientTitleVersion; // Maniascript
const bool IsSpectator; // Maniascript
const uint IdleDuration; // Maniascript
};

struct CGameControlCameraEditorOrbital : public CGameControlCamera {
@@ -7049,18 +7055,31 @@ struct CGameCtnMediaBlockCameraEffectScript : public CGameCtnMediaBlockCameraEff

// Description: "API for server control when playing online."
struct CGameScriptServerAdmin : public CMwNod {
enum ESpecMode {
Selectable = 0,
SpectatorForced = 1,
PlayerForced = 2,
SpectatorSelectable = 3,
PlayerSelectable = 4,
};
CGameCtnNetServerInfo* const ServerInfo; // Maniascript
void AutoTeamBalance(); // Maniascript
bool Kick1(CGamePlayerInfo* User, wstring Reason); // Maniascript
bool Kick2(CGameConnectedClient* Client, wstring Reason); // Maniascript
bool KickUser(CGamePlayerInfo* User, wstring Reason); // Maniascript
bool Ban1(CGamePlayerInfo* User, wstring Reason); // Maniascript
bool Ban2(CGameConnectedClient* Client, wstring Reason); // Maniascript
bool RequestSwitchToSpectator1(CGamePlayerInfo* User); // Maniascript
bool RequestSwitchToSpectator2(CGameConnectedClient* Client); // Maniascript
bool ForceSpectator1(CGamePlayerInfo* User, ESpecMode SpecMode); // Maniascript
bool ForceSpectator2(CGameConnectedClient* Client, ESpecMode SpecMode); // Maniascript
bool ForcePlayerRequestedTeam1(CGamePlayerInfo* User, int Team); // Maniascript
bool ForcePlayerRequestedTeam2(CGameConnectedClient* Client, int Team); // Maniascript
void SetLobbyInfo(bool IsLobby, int LobbyPlayerCount, int LobbyMaxPlayerCount, float LobbyPlayersLevel); // Maniascript
void SendToServerAfterMatch(string ServerUrl); // Maniascript
void CustomizeQuitDialog(string ManialinkPage, string SendToServerUrl, bool ProposeAddToFavorites, uint ForceDelay); // Maniascript
void Authentication_GetToken(MwId UserId, string AppLogin); // Maniascript
const bool Authentication_GetTokenResponseReceived; // Maniascript
const uint Authentication_ErrorCode; // Maniascript
const string Authentication_Token; // Maniascript
};

struct CGamePlayerProfileChunk_EditorSettings : public CGamePlayerProfileChunk {
@@ -8690,6 +8709,7 @@ struct CGameManiaTitleControlScriptAPI : public CMwNod {
PixelArt = 6,
EditorEditor = 7,
VehicleAssembler = 8,
MaterialEditor = 9,
};
void Dbg_GetServerInfoObj();
void Dbg_Join_GetServerInfo_Result();
@@ -10384,6 +10404,8 @@ struct CGameEditorMesh : public CGameEditorAsset {
};
void UVEditor_UVMode();
void UVEditor_AtlasMode();
bool GoToMaterialEditor; // Maniascript
bool IsCreateMaterial; // Maniascript
const bool Tmp_UseParts; // Maniascript
CControlFrame* const UIRoot;
CMwNod* const EditedNod;
@@ -10407,6 +10429,7 @@ struct CGameEditorMesh : public CGameEditorAsset {
EEdgesDisplay DisplayEdges; // Maniascript
void EditedMesh_Clear(); // Maniascript
void EditedMesh_Simplify(); // Maniascript
void EditedMesh_Lod(float Faces Ratio); // Maniascript
void UVUnwrap(MwId SetHandle, ETexCoordLayer ETexCoordLayer); // Maniascript
void Undo(); // Maniascript
void Redo(); // Maniascript
@@ -10425,9 +10448,11 @@ struct CGameEditorMesh : public CGameEditorAsset {
const int MaterialsUpdateId; // Maniascript
const MwBuffer<CPlugBitmap*> AllBitmaps; // Maniascript
const MwBuffer<MwId> MaterialIds; // Maniascript
const MwBuffer<string> MaterialNames; // Maniascript
MwId Material_GetMaterialIdSelected(); // Maniascript
void Material_SetMaterialIdSelected(MwId MaterialEditorId); // Maniascript
uint Material_GetSubTexIndexSelected(); // Maniascript
uint Material_MaterialLibGetCount(); // Maniascript
void Material_SetDefault(MwId MaterialId); // Maniascript
MwId Material_GetDefault(); // Maniascript
CPlugBitmap* Material_GetBitmapBase(MwId MaterialId); // Maniascript
@@ -10444,6 +10469,7 @@ struct CGameEditorMesh : public CGameEditorAsset {
void Material_UVEditor_SetMode(EUVEditorMode Mode); // Maniascript
EUVEditorMode Material_UVEditor_GetMode(); // Maniascript
void Material_UVEditor_SetProjectionType(EUVEditorProjectionType ProjectionType); // Maniascript
bool Material_IsGameMaterial(); // Maniascript
void Material_UVEditor_Apply(); // Maniascript
void Material_PasteMaterial(MwId SetHandle); // Maniascript
const uint Material_Atlas_SelectedSubTexIndex; // Maniascript
@@ -10585,6 +10611,7 @@ struct CGameEditorEvent : public CGameManiaAppScriptEvent {
FileChanged = 4,
OnUndo = 5,
OnRedo = 6,
OnSwitchedBack = 7,
};
const Type Type; // Maniascript
};
@@ -10928,6 +10955,9 @@ struct CGameBlockItemVariantChooser : public CMwNod {
struct CGameArenaPlayer : public CMwNod {
};

struct CGameEditorMaterial : public CGameEditorParent {
};

} // namespace Game

namespace Graphic {
@@ -13234,7 +13264,7 @@ struct CPlugSurface : public CPlug {
MwBuffer<CPlugMaterial*> Materials;
CPlugSkel* Skel;
void UpdateSurfMaterialIdsFromMaterialIndexs();
surf Surf;
UnknownType Surf;
_EGmSurfType GmSurfType;
float Radius;
vec3 Radii;
@@ -13326,7 +13356,7 @@ struct CPlugBitmap : public CPlug {
Wrap = 0,
Mirror = 1,
Clamp = 2,
BorderSM3 = 3,
Border = 3,
};
enum EColorSpace {
Linear = 0,
@@ -15845,13 +15875,30 @@ struct CPlugCharPhyModelCustom : public CMwNod {
struct CPlugMaterialUserInst : public CMwNod {
CPlugMaterialUserInst();

MwId Name;
EMaterialModelStatic ModelModelStatic;
EMaterialModelDyna0 ModelModelDyna0;
EMaterialModelChar ModelModelChar;
EMaterialModelVehicle ModelModelVehicle;
MwId Model;
wstring BaseTexture;
DataRef TexturesDiffuse;
DataRef TexturesDiffuseO;
DataRef TexturesSpecular;
DataRef TexturesNormal;
DataRef TexturesEnergy;
DataRef TexturesTeamMask;
DataRef TexturesSelfIllum;
DataRef TexturesDamage;
DataRef TexturesDirt;
DataRef TexturesShield;
MwId Link;
ETexAddress IsTilingX;
ETexAddress IsTilingY;
float TextureHeightInMeters;
ETexAddress TilingU;
ETexAddress TilingV;
float TextureSizeInMeters;
uint PhysicsID;
uint Dbg_PhysicsID;
string PhysicsName;
uint Dbg_PhysicsName;
};

struct CPlugMoodSetting : public CPlug {
@@ -15976,7 +16023,7 @@ struct CPlugFileWebM : public CPlugFileVideo {
struct CPlugCharVisModelCustom : public CMwNod {
CPlugCharVisModelCustom();

UnknownType Sprites;
const bool IsSprite;
};

struct CPlugCamShakeModel : public CMwNod {
@@ -20051,6 +20098,7 @@ struct CTmRaceRulesPlayer : public CGamePlayer {
const vec3 Velocity; // Maniascript
const float Speed; // Maniascript
MwId ForceModelId; // Maniascript
const uint IdleDuration; // Maniascript
float AccelCoef; // Maniascript
float ControlCoef; // Maniascript
float GravityCoef; // Maniascript
@@ -20675,7 +20723,6 @@ struct CSmPlayer : public CGamePlayer {
float LinearHue; // Range: 0 - 1
const Color LinearHueSrgb;
const int SpawnIndex;
const uint AFKLatestChangeTime;
CSmArenaScore* const Score; // Maniascript
const ESpawnStatus SpawnStatus; // Maniascript
const int StartTime; // Maniascript
@@ -20952,7 +20999,6 @@ struct CSmArenaServer : public CMwNod {
uint ClientInputsMaxLatency;
uint DbgMinInputDelay;
uint DbgDelaySendSnapshots;
bool FilterInputs;
};

struct CSmArena : public CMwNod {
@@ -21515,7 +21561,7 @@ struct CGameItemModel : public CGameCtnCollector {
CGameItemPlacementParam* DefaultPlacementParam_Head;
CGameItemPlacementParam* DefaultPlacementParam_Content;
CGameItemPlacementParam* DefaultPlacementParam_Dbg;
DataRef Icon;
CPlugFileImg* Icon;
CMwNod* EntityModelEdition;
CMwNod* EntityModel;
CMwNod* VisModel;
@@ -21598,7 +21644,6 @@ struct CGameObjectVisModel : public CMwNod {
CPlugSolid2Model* MeshShaded;
wstring SmashParticleRef;
CPlugParticleEmitterModel* DestroyParticleModel;
UnknownType Sprites;
};

// File extension: 'Action.Gbx'
@@ -21852,6 +21897,7 @@ struct CGameEditorModel : public CMwNod {
PixelArt = 6,
EditorEditor = 7,
VehicleAssembler = 8,
MaterialEditor = 9,
};
const EEditorType EditorType;
bool AutoGenerateHelp;
@@ -21929,7 +21975,6 @@ struct CGameCommonItemEntityModelEdition : public CMwNod {
};
const EnumItemType ItemType;
CPlugCrystal* MeshCrystal;
UnknownType Sprites;
CPlugParticleEmitterModel* DestroyParticleModel;
bool UseMeshAsMoveShape;
CPlugCrystal* CustomMoveShapeCrystal;

0 comments on commit b106d3c

Please sign in to comment.