Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22
  1. #21
    Join Date
    Dec 2009
    Location
    Atlantis
    Posts
    167
    dam dont know how I missed those thanks for the help

  2. #22
    Join Date
    Aug 2010
    Posts
    158
    I guess I will post the issue here in case any one else has a similar issue. In the ClientSystemBase'3 there were 2 properties that were set up as a public getter and private setter instead of just being getter around the generic types in that class. This was causing a null reference exception that was being eaten by Photon and not allowing systems to be created.

    Code:
    using System;
    using DystopiaOnline.Base.Infrastructure;
     
    namespace DystopiaOnline.Server
    {
         public abstract class ClientSystemBase<TContextType, TServerInterface, TClientInterface> : ISystemBase<TServerInterface, TClientInterface>, IInternalSystem 
             where TContextType : ClientContext
         {
    -        public Type ServerSystemInterfaceType { get; private set; }
    -        public Type ClientSystemInterfaceType { get; private set; }
    +        public Type ServerSystemInterfaceType { get { return typeof(TServerInterface); } }
    +        public Type ClientSystemInterfaceType { get { return typeof(TClientInterface); } }
     
             protected TContextType Context;
             protected TClientInterface Proxy;
     
             public void Init(ClientContext client, object proxy)
             {
                 Context = (TContextType) client;
                 Proxy = (TClientInterface) proxy;
     
                 Awake();
             }
     
             protected virtual void Awake()
             {
                 
             }
     
             public virtual void Dispose()
             {
                 
             }
         }
    }
    Last edited by am385; 05-31-2015 at 06:52 PM.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •