public static ServerMessage Compose(AvatarEffect Effect) { ServerMessage Message = new ServerMessage(OpcodesOut.USER_EFFECT_ADDED); Message.AppendInt32(Effect.SpriteId); Message.AppendInt32((int)Effect.Duration); return Message; }
public void Add(AvatarEffect Effect) { lock (mSyncRoot) { mInner.Add(Effect.Id, Effect); } }