Beispiel #1
0
            public void should_have_a_default()
            {
                var ammo = Gun_stat.CreateInstance <Gun_stat>();
                var d    = ammo.find_default <Gun_stat>();

                Assert.IsNotNull(d);
            }
Beispiel #2
0
 protected override void _init_cache()
 {
     base._init_cache();
     if (ammo == null)
     {
         ammo = load_default_ammo() as Ammo;
     }
     if (stat == null)
     {
         stat = load_default_stat() as Gun_stat;
     }
 }
Beispiel #3
0
 protected virtual chibi_base.Chibi_object load_default_stat()
 {
     return(Gun_stat.CreateInstance <Gun_stat>()
            .find_default <Gun_stat>());
 }