Add server & shared module and remove the serveur from the client app.
This commit is contained in:
		
							parent
							
								
									fa87f05be6
								
							
						
					
					
						commit
						3419afbe59
					
				
					 47 changed files with 233 additions and 530 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,9 @@
 | 
			
		|||
package com.pixelized.server.lwa.protocol
 | 
			
		||||
 | 
			
		||||
import kotlinx.serialization.Serializable
 | 
			
		||||
 | 
			
		||||
@Serializable
 | 
			
		||||
data class Message(
 | 
			
		||||
    val from: String,
 | 
			
		||||
    val value: MessageContent,
 | 
			
		||||
)
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
package com.pixelized.server.lwa.protocol
 | 
			
		||||
 | 
			
		||||
import kotlinx.serialization.Serializable
 | 
			
		||||
 | 
			
		||||
@Serializable
 | 
			
		||||
sealed interface MessageContent
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
package com.pixelized.server.lwa.protocol
 | 
			
		||||
 | 
			
		||||
import kotlinx.serialization.Serializable
 | 
			
		||||
 | 
			
		||||
@Serializable
 | 
			
		||||
data class RollMessage(
 | 
			
		||||
    val skillLabel: String,
 | 
			
		||||
    val resultLabel: String?,
 | 
			
		||||
    val rollDifficulty: String?,
 | 
			
		||||
    val rollValue: Int,
 | 
			
		||||
    val rollSuccessLimit: Int?,
 | 
			
		||||
) : MessageContent
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue