Exemplo n.º 1
0
    protected ObjectBase CreateObject(int templateId, int idForGenerateName, bool clientNotServer, int createionMethod = ObjectCreationContext.CreationMethodType.OBJECT_CREATION_METHOD)
    {
        ObjectCreationContext context = new ObjectCreationContext();

        context.templateId      = templateId;
        context.clientNotServer = clientNotServer;
        context.CreationMethod  = createionMethod;
        context.NetworkID       = idForGenerateName;

        return(InstanceBase.GetCurrentInstance().GetObjectManager().CreateObject(context));
    }