Revision Difference
player_manager.RegisterClass#517998
<function name="RegisterClass" parent="player_manager" type="libraryfunc">
	<description>Register a class metatable to be assigned to players later</description>
	<realm>Shared</realm>
	<args>
		<arg name="name" type="string">Class name</arg>
		<arg name="table" type="table">Class metatable</arg>
		<arg name="base" type="string">Base class name</arg>
	</args>
</function>
<example>
	<description>A quick look at registering a class table</description>
	<code>
local PLAYER = {}
PLAYER.DisplayName = "Default Class"
...
player_manager.RegisterClass( "player_default", PLAYER, nil )
	</code>
</example>
<example>
	<description>You can retrieve the data you've set when registering the table using baseclass.Get( "&lt;classname&gt;" )</description>
	<description>You can retrieve the data you've set when registering the table using baseclass.Get( "<classname>" )</description>
	<code>PrintTable(baseclass.Get( "player_default" ))</code>
	<output>
&lt;br&gt;Walkspeed = 300&lt;br&gt;
RunSpeed = 500&lt;br&gt;
CalcView = function: 0x00665988&lt;br&gt;
UseVMHands = true&lt;br&gt;
<br>Walkspeed = 300<br>
RunSpeed = 500<br>
CalcView = function: 0x00665988<br>
UseVMHands = true<br>
etc...
	</output>
</example>
 Garry's Mod
			Garry's Mod 
		 Rust
			Rust 
		 Steamworks
			Steamworks 
		 Wiki Help
			Wiki Help