public void RpcInvokeEffect(string key, SyncItem syncItem) { if (!isClient) { return; } var effectType = skillEffects [key]; if (effectType == null) { return; } var attacker = Race.GetCharacterByNetId(syncItem.ownNetId, false); var opponents = Race.GetCharactersByNetIds(syncItem.targetNetIds, false); Effect.CreatePrimitiveAndUse(effectType, null, attacker, opponents); }
public void CmdJoin(uint characterNetId) { var character = Race.GetCharacterByNetId(characterNetId); Join(character); }