I was wondering something, I use a lot of extension requests, for starting to shoot the gun, when jumping, triggering items, etc lots and lots.
So there's a lot of allocations for the SFSObject like this (from your BattleFarm exemple)
Code: Select all
var paramsObj:SFSObject = new SFSObject();
paramsObj.putInt("bId", i);
paramsObj.putInt("bx", px);
paramsObj.putInt("by", py);
refDocument.smartFox.send(new ExtensionRequest("bb", paramsObj));
Code: Select all
if(m_PlayerPawn.m_vLocation.X != m_fNetPawnLocationX)
m_UserVars.push(new SFSUserVariable("PosX", m_PlayerPawn.m_vLocation.X, VariableType.DOUBLE));
if(m_PlayerPawn.m_vLocation.Y != m_fNetPawnLocationY)
m_UserVars.push(new SFSUserVariable("PosY", m_PlayerPawn.m_vLocation.Y, VariableType.DOUBLE));
Thank you very much