Exemple #1
0
        public T GetEntity <T>()
            where T : class, IClientEntity
        {
            var protoType = _entityFactory.GetProtoType(typeof(T));

            if (protoType == null)
            {
                throw new ArgumentException($"EntityType({nameof(T)}) doesn't have a prototype");
            }

            return((T)GetEntity(protoType));
        }