Exemple #1
0
        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);
        }
Exemple #2
0
        public void CmdJoin(uint characterNetId)
        {
            var character = Race.GetCharacterByNetId(characterNetId);

            Join(character);
        }