Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
Greg Landowski edited this page Mar 13, 2018 · 8 revisions

Welcome to the GWCA wiki!

Data Structure

Game

Client Context is main game structure used in game, houses large amount of game data. Game primarily accesses through thread-local storage. Function to access from within game thread is

GW::GameContext* GetClientContext()
{
	void*** thread_local_storage = reinterpret_cast<void***>(__readfsdword(0x2C));
	return reinterpret_cast<GW::GameContext*>(thread_local_storage[0][1]);
}

Outside of gamethread, is accessed through the "BasePointer" as known in earlier API's, is more accurately a thread context.

Agent

Base structure for all entitys that exist in the game. Child classes include [Character], [Item], and [Gadget (a.k.a. Signpost][Gadget]. [Identification] [Pathing]

Item

[ModStruct]

Clone this wiki locally