mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Weaver: update comments
This commit is contained in:
parent
88170ed141
commit
20b7e5326e
@ -10,10 +10,11 @@ public static class CommandProcessor
|
|||||||
// generates code like:
|
// generates code like:
|
||||||
public void CmdThrust(float thrusting, int spin)
|
public void CmdThrust(float thrusting, int spin)
|
||||||
{
|
{
|
||||||
NetworkWriter networkWriter = new NetworkWriter();
|
NetworkWriterPooled writer = NetworkWriterPool.Get();
|
||||||
networkWriter.Write(thrusting);
|
writer.Write(thrusting);
|
||||||
networkWriter.WritePackedUInt32((uint)spin);
|
writer.WritePackedUInt32((uint)spin);
|
||||||
base.SendCommandInternal(cmdName, networkWriter, channel);
|
base.SendCommandInternal(cmdName, cmdHash, writer, channel);
|
||||||
|
NetworkWriterPool.Return(writer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CallCmdThrust(float thrusting, int spin)
|
public void CallCmdThrust(float thrusting, int spin)
|
||||||
|
Loading…
Reference in New Issue
Block a user